package com.jshop.servlet.book;

import java.io.IOException;
import java.util.ArrayList;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.jshop.entity.JSHOP_BOOK;
import com.jshop.entity.JSHOP_CATEGORY;
import com.jshop.service.JSHOP_BOOK_DAO;
import com.jshop.service.JSHOP_CATE_DAO;

@WebServlet("/backstage/admin_dobookselect")
public class DoBookSelect extends HttpServlet {
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		request.setCharacterEncoding("UTF-8");
		response.setContentType("text/html;charset=utf-8");
		
		ArrayList<JSHOP_BOOK> blist = JSHOP_BOOK_DAO.selectAll();
		request.setAttribute("blist", blist);
		request.getRequestDispatcher("admin_book.jsp").forward(request, response);
	}
}
